package com.cxk.hr.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName("salary")
public class Salary extends Model<Salary> implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId
	private Integer id;
	private Integer employeeNumber;
	private String name;
	private Integer payGradeSalary;// 薪级工资
	private Integer postWages;// 岗位工资
	private Integer achievementsRelatedWages;// 效益工资
	private Integer workSubsidies;// 医龄补贴
	private Integer dutyAllowance;// 职务补贴
	private Integer subsidy;// 津贴补贴
	private Integer money;// 应该工资
	private Integer absentFine;// 缺勤罚金
	private Integer socialSecurity;// 社保
	private Integer accumulationFund; // 公积金
	private Integer individualIncomeTax;// 个人所得税
	private Integer count;// 实发工资

	public Integer getEmployeeNumber() {
		return employeeNumber;
	}

	public void setEmployeeNumber(Integer employeeNumber) {

		this.employeeNumber = employeeNumber;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPayGradeSalary() {
		if (payGradeSalary == null) {
			return 0;
		}
		return payGradeSalary;
	}

	public void setPayGradeSalary(Integer payGradeSalary) {
		this.payGradeSalary = payGradeSalary;
	}

	public Integer getPostWages() {
		if (postWages == null) {
			return 0;
		}
		return postWages;
	}

	public void setPostWages(Integer postWages) {
		this.postWages = postWages;
	}

	public Integer getAchievementsRelatedWages() {
		if (achievementsRelatedWages == null) {
			return 0;
		}
		return achievementsRelatedWages;
	}

	public void setAchievementsRelatedWages(Integer achievementsRelatedWages) {
		this.achievementsRelatedWages = achievementsRelatedWages;
	}

	public Integer getWorkSubsidies() {
		if (workSubsidies == null) {
			return 0;
		}
		return workSubsidies;
	}

	public void setWorkSubsidies(Integer workSubsidies) {
		this.workSubsidies = workSubsidies;
	}

	public Integer getDutyAllowance() {
		if (dutyAllowance == null) {
			return 0;
		}
		return dutyAllowance;
	}

	public void setDutyAllowance(Integer dutyAllowance) {
		this.dutyAllowance = dutyAllowance;
	}

	public Integer getSubsidy() {
		if (subsidy == null) {
			return 0;
		}
		return subsidy;
	}

	public void setSubsidy(Integer subsidy) {
		this.subsidy = subsidy;
	}

	public Integer getMoney() {
		if (money == null) {
			return 0;
		}
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public Integer getAbsentFine() {
		if (absentFine == null) {
			return 0;
		}
		return absentFine;
	}

	public void setAbsentFine(Integer absentFine) {
		this.absentFine = absentFine;
	}

	public Integer getSocialSecurity() {
		if (socialSecurity == null) {
			return 0;
		}
		return socialSecurity;
	}

	public void setSocialSecurity(Integer socialSecurity) {
		this.socialSecurity = socialSecurity;
	}

	public Integer getAccumulationFund() {
		if (accumulationFund == null) {
			return 0;
		}
		return accumulationFund;
	}

	public void setAccumulationFund(Integer accumulationFund) {
		this.accumulationFund = accumulationFund;
	}

	public Integer getIndividualIncomeTax() {
		if (individualIncomeTax == null) {
			return 0;
		}
		return individualIncomeTax;
	}

	public void setIndividualIncomeTax(Integer individualIncomeTax) {
		this.individualIncomeTax = individualIncomeTax;
	}

	public Integer getCount() {
		if (count == null) {
			return 0;
		}
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	protected Serializable pkVal() {
		return null;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Salary [id=" + id + ", employeeNumber=" + employeeNumber + ", name=" + name + ", payGradeSalary="
				+ payGradeSalary + ", postWages=" + postWages + ", achievementsRelatedWages=" + achievementsRelatedWages
				+ ", workSubsidies=" + workSubsidies + ", dutyAllowance=" + dutyAllowance + ", subsidy=" + subsidy
				+ ", money=" + money + ", absentFine=" + absentFine + ", socialSecurity=" + socialSecurity
				+ ", accumulationFund=" + accumulationFund + ", individualIncomeTax=" + individualIncomeTax + ", count="
				+ count + "]";
	}

	// @TableField(exist = false)
	// private InsurancesAndHousingFund insurancesAndHousingFund;// 五险一金

}
